using Elsa.Workflows;
using Elsa.Workflows.Activities;
using Elsa.Workflows.Contracts;

namespace DeviceRepairWorkflow.Api.Workflows;

public class DeviceRepairWorkflow : WorkflowBase
{
    protected override void Build(IWorkflowBuilder builder)
    {
        builder.Name = "设备维修工作流";
        builder.Description = "处理设备维修请求的完整流程";
        builder.Version = 1;
        
        // Define workflow variables
        var repairRequestId = builder.WithVariable<int>();
        var currentStep = builder.WithVariable<string>();
        
        builder.Root = new Sequence
        {
            Activities =
            {
                // 1. 开始 - 初始化工作流
                new WriteLine("设备维修工作流开始"),
                
                // 2. 决策等待点
                new WriteLine("等待维修方式决策"),
                
                // 3. 条件分支处理
                new WriteLine("工作流定义完成 - 具体执行由控制器处理")
            }
        };
    }
} 